




<form autocomplete="off" class="layui-form layui-box modal-form-box validate-form" action="/system/dict/ajax_add"  method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">排序值</label>
        <div class="layui-input-block">
            <input name="sort" value=''  title="排序值不为空" placeholder="排序值" class="layui-input required">
            <span style="display: inline-block;">&nbsp;</span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input  name="name" value=''   title="名称不为空" placeholder="名称" class="layui-input required">
            <span style="display: inline-block;">&nbsp;</span>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">轮播图片</label>
        <div class='col-sm-8'>
            <img data-tips-image style="height:auto;max-height:32px;min-width:32px" src="#"/>
            <input type="hidden" name="logo" onchange="$(this).prev('img').attr('src', this.value)"
                   value="#" class="layui-input">
            <a class="btn btn-link" data-file="one" data-type="ico,png" data-field="logo">上传图片</a>
            <p>轮播图片</p>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">链接地址</label>
        <div class="layui-input-block">
            <input name="url" value='' title="链接地址不为空" placeholder="链接地址" class="layui-input required">
            <span style="display: inline-block;">&nbsp;</span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否显示</label>
        <div class="layui-input-block">
            <input name="descr" value='' title="链接地址不为空" placeholder="链接地址" class="layui-input required">
            <span style="display: inline-block;">&nbsp;</span>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>